<template>
    <div class="box">
        <van-search v-model="value" placeholder="搜索" shape="round" />
        <div class="title"><span>已添加人员</span><img @click="pushDetail" src="img/tianjiarenyuan@2x.png" alt=""></div>
        <ul>
            <li>
                <van-swipe-cell>

                <van-cell :border="false" title="于海洋（研发中心）" />
                <template #right>
                    <div class="button">
                        <button @click="roleTo" class="blue">权限范围</button>
                   <button class="red">删除</button>
                    </div>
                </template>
                </van-swipe-cell>
            </li>
        </ul>
    </div>
</template>
<script>
export default {
    data() {
        return {
            value:''
        }
    },
    methods: {
        pushDetail(){
            this.$router.push({
                path:'/changepart'
            })
        },
        roleTo(){
            this.$router.push({
                path:'/role'
            })
        }
    },
}
</script>
<style lang="scss" scoped>
    .box{
    min-height: 100%;
    background: #F7F9FA;
}
.button{
    display: flex;
    height: 100%;
}
.blue{
    width: 1.5rem;
    background: #299BFF;
    color: #FFFFFF;
    font-family: PingFang SC;
    font-weight: bold;
    color: #FFFFFF;
    display: flex;
    font-size: 0.28rem;
    align-items: center;
    justify-content: center;
    border: none;
    height: 100%;
}
.red{
    border: none;
    height: 100%;
    width: 1rem;
    font-size: 0.28rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F10000;
    color: #FFFFFF;
}
.title{
    display: flex;
    padding: 0.2rem;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    span{
        
            font-size: 0.3rem;
            font-family: PingFang SC;
            font-weight: bold;
            color: #333333;
    }
    img{
        display: block;
        width: 0.44rem;
        height: 0.44rem;
    }
}
ul{
    background: white;
    li{
        border-bottom: 0.01rem solid #eee;
    }
}
/deep/ .van-search{
    height: 0.6rem;
    background: #F7F9FA;
    margin-top: 0.1rem;
}
/deep/ .van-search__content{
    background: white;
}
</style>